<div class="users form">
<?php echo $this->Form->create('User'); ?>
	<fieldset>
		<legend>Editar usuário</legend>
	<?php
		echo $this->Form->input('username');
		echo $this->Form->input('nome');
		echo $this->Form->input('email');
		echo $this->Form->input('instituicao');
		echo $this->Form->input('endereco');
		echo $this->Form->input('telefone');
		echo $this->Form->input('tipo', array('options' => array('admin' => 'Administrador', 'colaborador' => 'Colaborador', 'pesquisador' => 'Pesquisador')));
	?>
	</fieldset>
<?php echo $this->Form->end(__('Submit')); ?>
</div>
<div class="actions">
	<h3><?php echo __('Actions'); ?></h3>
	<ul>

		<li><?php echo $this->Form->postLink('Deletar', array('action' => 'delete', $this->Form->value('Users.username')), null, __('Você tem certeza que quer deletar o usuário %s?', $this->Form->value('Users.username'))); ?></li>
		<li><?php echo $this->Html->link('Listar usuários', array('action' => 'index')); ?></li>
	</ul>
</div>
